package com.chg.mymvc.dao;

import com.chg.mymvc.entity.News;

import java.util.List;

public interface NewsDao {
    public void delNews(int id);
    public void updateNews(News news);
    public List<News> queryAll(int page, int pagesize);
    public List<News> queryAllofperm(int page, int pagesize,String pername);
    public int allcount();
    public News getNewsByName(String name);

//    public News getNewssByName(String name);
public List<News> getNewssByName(String name);
    public int addNews(News news);
    public News selecNewstById(int id);



}
